@extends('backend.layouts.app')

@section('content')

<div class="col-lg-12">
    <div class="card">
        <div class="card-header">
            <h3 class="mb-0 h6">{{translate('Manual Payment Information')}}</h3>
        </div>

        <form action="{{ route('manual_df_methods.update', $manual_df_method->id) }}" method="POST">
          <input name="_method" type="hidden" value="PATCH">
          @csrf
            <div class="card-body">

                <div class="form-group row">
                    <label class="col-sm-2 col-from-label" for="name">{{translate('Heading')}}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="heading" value="{{ $manual_df_method->heading }}" placeholder="" required>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-from-label" for="name">{{translate('Df Code')}}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="code" value="{{ $manual_df_method->code }}" placeholder="Code" required>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-from-label" for="name">{{translate('Df Mch Id')}}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="mch_id" value="{{ $manual_df_method->mch_id }}" placeholder="Mch ID" >
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-from-label" for="name">{{translate('Df App ID')}}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="appid" value="{{ $manual_df_method->appid }}" placeholder="App ID" >
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-from-label" for="name">{{translate('Df App Secret')}}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="appsecret" value="{{ $manual_df_method->appsecret }}" placeholder="App Secret" >
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-2 col-from-label" for="name">{{translate('Df Gateway')}}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="gateway" value="{{ $manual_df_method->gateway }}" placeholder="Gateway" >
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-md-2 col-form-label" for="signinSrEmail">{{translate('Checkout Thumbnail')}} (438x235)px</label>
                    <div class="col-md-8">
                        <div class="input-group" data-toggle="aizuploader" data-type="image" data-multiple="false">
                            <div class="input-group-prepend">
                                <div class="input-group-text bg-soft-secondary font-weight-medium">{{ translate('Browse')}}</div>
                            </div>
                            <div class="form-control file-amount">{{ translate('Choose File') }}</div>
                            <input type="hidden" name="photo" value="{{ $manual_df_method->photo }}" class="selected-files">
                        </div>
                        <div class="file-preview box sm">
                        </div>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-sm-2 col-from-label">{{translate('Payment Instruction')}}</label>
                    <div class="col-sm-10">
                        <textarea class="aiz-text-editor" name="description">@php echo $manual_df_method->description @endphp</textarea>
                    </div>
                </div>

            </div>
            <div class="form-group mb-3 text-right">
                <button type="submit" class="btn btn-primary">{{translate('Save')}}</button>
            </div>
        </form>
        <!--===================================================-->
        <!--End Horizontal Form-->

    </div>
</div>

@endsection

@section('script')
    <script type="text/javascript">


    </script>
@endsection
